home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / SeqPups / appsrc / autoseq.src / RInclude.H < prev    next >
Text File  |  1996-07-05  |  1KB  |  48 lines

  1. //    ============================================================================
  2. //    RInclude.H                                                        80 spaces
  3. //    Reece Hart, reece@ibc.wustl.edu                                    tab=4 spaces
  4. //    -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -
  5. //    This file contains homegrown definitions, typedefs, etc. which are used in
  6. //    many of my sources.  Note that it is C++ specific.
  7. //    ========================================|===================================
  8.  
  9. #ifndef _H_RInclude                            // include this file only once
  10. #define _H_RInclude
  11.  
  12. #undef WIN_MAC  // dgg temp fix
  13.  
  14. #ifndef TRUE
  15. #define    FALSE        0
  16. #define    TRUE        !FALSE
  17. #endif
  18.  
  19. #undef    NULL
  20. #ifndef    NULL
  21. #    define NULL        0                        // ++ def'n of NULL
  22. #endif
  23.  
  24. typedef int                enum_t;                // clarify that enum val is expected
  25. typedef    int                bool;
  26. typedef unsigned long    ulong;
  27. typedef unsigned int    uint;
  28. typedef unsigned short    ushort;
  29. typedef unsigned char    uchar;
  30. typedef unsigned char    byte;
  31.  
  32. typedef char            vrsn[10];            // version strings
  33.  
  34. #ifdef _H_STORAGE
  35. // dgg -- added _H_STORAGE flag to avoid multi storage of same symbols
  36. const ulong BYTE[] =                        // BYTE[i] is a byte mask for byte i
  37.     { 0x000000ff, 0x0000ff00, 0x00ff0000, 0xff000000 };
  38.  
  39. const byte BIT[] =                            // BIT[i] is a bit mask for bit i
  40.     {
  41.     0x01, 0x01<<1, 0x01<<2, 0x01<<3, 0x01<<4, 0x01<<5, 0x01<<6, 0x01<<7    };
  42. #else
  43. extern const ulong BYTE[];
  44. extern const byte BIT[];
  45. #endif
  46.  
  47. #endif                                        // conditional inclusion
  48.